angular.module('starter.controllers', [])

//.controller('WangkaCtrl', function($scope) {})

.controller('CodeCtrl', function($scope) {})

.controller('ShopsCtrl', function($scope) {
  $scope.settings = {
    enableFriends: true
  };
})

.controller('BossCtrl', function($scope) {})

.controller('MyCtrl', function($scope) {})

//popover 起
    .controller( 'NavCtrl',['$scope','$ionicPopover',function($scope,$ionicPopover){
        $ionicPopover.fromTemplateUrl('shops.html',{
            scope: $scope
        }).then(function(popover) {
            $scope.popover = popover;
        });
        $scope.openPopover = function($event) {
            $scope.popover.show($event);
        };
        $scope.elementPopover = function(id) {
            $scope.popover.show($("#"+id));
        };
        $scope.closePopover = function() {
            $scope.popover.hide();
        };
    }])
//popover 止
